package com.googlecode.openauth.web.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.googlecode.openauth.web.entity.RRoleResource;
import com.googlecode.openauth.web.entity.ResourceInfo;
import com.googlecode.openauth.web.entity.RoleInfo;

public interface IResourceDao {
	public int addResourceInfo(ResourceInfo res);
	public void delResourceInfo(int roleId);
	
	public void updateResource(ResourceInfo res);
	public List<ResourceInfo> getResources(ResourceInfo res);
	public ResourceInfo getResourceById(int resId);
	public int getAllResourcesCount(RoleInfo userInfo);
//	public List<ResourceInfo> getAllResource();
	public List<ResourceInfo> getAllResources(RoleInfo role, RowBounds rowBounds);
	public int searchResourcesCount(ResourceInfo res);
	public List<ResourceInfo> searchResources(ResourceInfo res, RowBounds rowBounds);
	public void insertBatch(List<RRoleResource> list);
	
}
